<template>
  <div>
    <h2>我的音乐</h2>
    <router-link to="/my/music/wyf">吴亦凡歌单</router-link>
    <router-link to="/my/music/lyf">李易峰歌单</router-link>
    <br>
    <button @click="fn">随机听歌</button>
    <hr />
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  data() {
    return {
      obj: {
        0: "/my/music/wyf",
        1: "/my/music/lyf",
      },
    };
  },
  methods: {
    fn() {
      this.$router.push(this.obj[Math.floor(Math.random() * 2)]);
    },
  },
};
</script>

<style></style>
